package demo;

/**
 * 测试
 *
 * @author sun.ye
 * @since 2020-07-17 17:56
 */
public class While {

    public static void main(String[] args) {
        int i = 1;
        while (i < 10){
            if (( ++i ) % 2 == 0){
                System.out.println(i);
            }
        }
    }
}